package com.zhangkunhao.notes.entity.Do;

import com.zhangkunhao.notes.annotation.TableField;
import com.zhangkunhao.notes.annotation.TableId;
import com.zhangkunhao.notes.annotation.TableName;

import java.sql.Timestamp;

/**
 * 不同权限（比如发问题，回答，评论，点赞）的黑名单
 *
 * @author 20642
 */
@TableName(name = "tb_permission_blacklist")
public class PermissionBlacklist {
    @TableId(value = "id")
    private Integer id;
    @TableField(value = "ban_permission_name")
    private String banPermissionName;
    @TableField(value = "ban_user_id")
    private Integer banUserId;
    @TableField(value = "open_date")
    private Timestamp openDate;
    @TableField(value = "ban_permission_id")
    private Integer banPermissionId;

    public PermissionBlacklist() {
    }

    public PermissionBlacklist(Integer id, String banPermissionName, Integer banUserId, Timestamp openDate, Integer banPermissionId) {
        this.id = id;
        this.banPermissionName = banPermissionName;
        this.banUserId = banUserId;
        this.openDate = openDate;
        this.banPermissionId = banPermissionId;
    }

    /**
     * 获取
     *
     * @return id
     */
    public Integer getId() {
        return id;
    }

    /**
     * 设置
     *
     * @param id：
     */
    public void setId(Integer id) {
        this.id = id;
    }

    /**
     * 获取
     *
     * @return banPermissionName
     */
    public String getBanPermissionName() {
        return banPermissionName;
    }

    /**
     * 设置
     *
     * @param banPermissionName：
     */
    public void setBanPermissionName(String banPermissionName) {
        this.banPermissionName = banPermissionName;
    }

    /**
     * 获取
     *
     * @return banUserId
     */
    public Integer getBanUserId() {
        return banUserId;
    }

    /**
     * 设置
     *
     * @param banUserId：
     */
    public void setBanUserId(Integer banUserId) {
        this.banUserId = banUserId;
    }

    /**
     * 获取
     *
     * @return openDate
     */
    public Timestamp getOpenDate() {
        return openDate;
    }

    /**
     * 设置
     *
     * @param openDate：
     */
    public void setOpenDate(Timestamp openDate) {
        this.openDate = openDate;
    }

    /**
     * 获取
     *
     * @return banPermissionId
     */
    public Integer getBanPermissionId() {
        return banPermissionId;
    }

    /**
     * 设置
     *
     * @param banPermissionId：
     */
    public void setBanPermissionId(Integer banPermissionId) {
        this.banPermissionId = banPermissionId;
    }

    @Override
    public String toString() {
        return "PermissionBlacklist{id = " + id + ", banPermissionName = " + banPermissionName + ", banUserId = " + banUserId + ", openDate = " + openDate + ", banPermissionId = " + banPermissionId + "}";
    }
}
